<?php
namespace osc\api\controller;

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/3/19
 * Time: 14:18
 */
class ExchangeTrade extends Base
{
    private $house;

    public function __construct()
    {
        parent::__construct();
        //交易所模型
        $this->house       =   new \osc\api\model\ExchangeHouse();

    }

    /**
     * 交易所信息接口
     * @return string
     */
    public function trade(){

        $trade = $this->house->where('state',1)->select();

        return json_encode(['check'=>1, 'mage'=>'success', 'data'=>$trade]);
    }

}